package com.songcan.oauth.mapper;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.songcan.model.oauth.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.songcan.oauth.vo.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2020-04-29
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    List<String> selectByDeptRole(@Param("userId")Long userId);

    IPage<UserVO>  selectByUserPage(Page page,@Param("keyWord")String keyWord);

    UserVO selectByDetail(@Param("userId")Long userId);
}
